package com.youfang.sixthmedia.message.center;

import java.util.List;

import com.youfang.sixthmedia.net.MessageDelegate;
import com.youfang.sixthmedia.net.Pair;
import com.youfang.sixthmedia.net.Request;
import com.youfang.sixthmedia.net.Response;

public class RegMessageDelegate extends MessageDelegate {

	public static class Req extends Request {

		public String username;
		public String password;
		public String email;

		@Override
		public List<Pair> getParams() {
			return Pair.p("controller", "userinfo").p("action", "register")
					.p("username", username).p("password", password)
					.p("email", email).get();
		}

		@Override
		public void genMetaData() {

		}

	}

	public Req req = new Req();
	public Response resp = Response.common();

	@Override
	public Request request() {
		return req;
	}

	@Override
	public Response response() {
		return resp;
	}

}
